package com.czxy.user.feign;

import com.czxy.domain.TbPhoto;
import com.czxy.findjob.vo.BaseResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

@FeignClient(value = "enterprise-service",path = "/photo")
public interface PhotoFeign {
    @GetMapping("findById/{id}")
    public BaseResult<TbPhoto> findById(@PathVariable("id") String id);
    @PostMapping("/save")
    public BaseResult<TbPhoto> save(@RequestBody TbPhoto tbPhoto);
}
